package com.hdd.biz.member.service;

import com.hdd.biz.member.dto.*;
import com.hdd.biz.member.entity.Member;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hdd.dto.SuperResponse;
import net.bytebuddy.implementation.bind.annotation.Super;

/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 * @author fang
 * @since 2021-02-25
 */
public interface MemberService extends IService<Member> {

    /**
     * 会员列表
     * @param request
     * @return
     */
    SuperResponse memberList(MemberListRequest request);

    /**
     * 会员详情
     * @param request
     * @return
     */
    SuperResponse info(MemberRequest request);

    /**
     * 创建会员
     * @param request
     * @return
     */
    SuperResponse createMember(MemberInfoRequest request);

    /**
     * 拉黑用户
     * @param request
     * @return
     */
    SuperResponse block(MemberRequest request);

    /**
     * 信任
     * @param request
     * @return
     */
    SuperResponse trust(MemberRequest request);


    /**
     * 用户违规
     * @param request
     * @return
     */
    SuperResponse violation(ViolationRequest request);


    /**
     * 
     * @param userId
     * @return
     */
    Member findMemberByUid(String userId);


    int registerTotals();

    int registerToday();

    int yesterdayRegisters();

    int weekRegisters();

    int monthRegisters();


    /**
     * 获取虚拟用户
     * @param request
     * @return
     */
    SuperResponse getInventedMember(APPMemberRequest request);


    SuperResponse addInventedMember(APPMemberRequest request);

}
